echo 'Press enter key to initiate installation of IBM Websphere requirements'
read 
echo 'IBM WAS/WP requires bash as shell for most of the scripts'
sudo rm /bin/sh 
sudo ln -s /bin/bash /bin/sh
echo 'IBM HTTP server requires korn shell'
sudo apt-get -y install ksh
echo 'IBM WAS profile management tool requires libgtk2'
sudo apt-get -y install libgtk2.0-0
echo 'IBM WP installation requires libstdc++5'
sudo apt-get -y install libstdc++5
echo 'IBM WAS cannot have 127.0.1.1 <fqdn> <hostname> in /etc/hosts'
sudo sed -i '/'$(hostname -f)'/d' /etc/hosts
sudo sed -i '/127.0.0.1/a'$(ifconfig eth0 | sed -n 's/.*inet *addr:\([0-9\.]*\).*/\1/p')'\t'$(hostname -f)'\t'$(hostname) /etc/hosts
echo 'IBM WAS/WP needs ulimit -n for running setting up for root'
sudo sed -i '/root.*nofile/d' /etc/security/limits.conf
sudo sed -i '/# End of file/iroot\t\t soft\t nofile\t\t 10240' /etc/security/limits.conf
sudo sed -i '/# End of file/iroot\t\t hard\t nofile\t\t 10240' /etc/security/limits.conf
echo 'Done installation of IBM Websphere requirements'